<!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Google Map</title>
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=abcdefg&sensor=true_or_false"
            type="text/javascript">
	</script>
    <script type="text/javascript">
            var map;
			var a;
			var b;
			var i=0;
			var point;
			initialize(); 
			function removeMarker()
							{

                               //var a1='<img src="Hydrangeas.jpg" width=150 height=80/><br/>'+ "This is transform image" + '<input type="button" id="btnPrueba" value="original image" onclick="initialize() "/>';
							    var a1='<img src="Hydrangeas.jpg" width=150 height=80/><br/>'+ "This is transform image" 
							   //var a2="aaaaa";
							   map.openInfoWindow(point, a1);
							   
							   
                            }
			function initialize() 
			{
				if (GBrowserIsCompatible()) 
				{
					map = new GMap2(document.getElementById("map_canvas"));
					map.setCenter(new GLatLng(43.83671305795762,-79.547336250543), 15);
					marker = new GMarker(new GLatLng(43.83671305795762,-79.547336250543));
					
					GEvent.addListener(map,"click", function(overlay, latlng) 
					{     
					    if (latlng) 
					    { 
						
						   
							var a=latlng.lat();
							var b=latlng.lng();
							point = new GLatLng(latlng.lat(),latlng.lng());
							map.addOverlay(new GMarker(point));
							var myHtml = "latitude: " + a + " longitude " + b;
							var address='<img src="smart-car.jpg" width=150 height=80/><br/>' + "This is original image</br>" + '<input type="button" id="btnPrueba" value="transform image" onclick="removeMarker()"/>';
        // <font size="2" face="Arial"><b>INDIA</b><br/><br/>Home.<br/>' + 
    var address1= '<input type="button" onClick="" value="POP!">';
                            //map.openInfoWindow(point, myHtml);
							map.openInfoWindow(point, myHtml);
							
   
					    }
					});
					map.addOverlay(marker);

				map.setMapType(G_SATELLITE_MAP);
				map.setUIToDefault();
			}
		}


    </script>
  </head>
  <body onload="initialize()" onunload="GUnload()">
		<div id="map_canvas" style="width: 1200px; height: 900px"></div>
  </body>
</html>